package edu.uni.dormitory.mapper;

import edu.uni.dormitory.bean.AccomodateApplyApproval;
import edu.uni.dormitory.bean.AccomodateApplyApprovalExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 映射
 */
public interface AccomodateApplyApprovalMapper {
    int countByExample(AccomodateApplyApprovalExample example);

    int deleteByExample(AccomodateApplyApprovalExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AccomodateApplyApproval record);

    int insertSelective(AccomodateApplyApproval record);

    List<AccomodateApplyApproval> selectByExample(AccomodateApplyApprovalExample example);

    AccomodateApplyApproval selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AccomodateApplyApproval record, @Param("example") AccomodateApplyApprovalExample example);

    int updateByExample(@Param("record") AccomodateApplyApproval record, @Param("example") AccomodateApplyApprovalExample example);

    int updateByPrimaryKeySelective(AccomodateApplyApproval record);

    int updateByPrimaryKey(AccomodateApplyApproval record);

    AccomodateApplyApproval selectLatestByApplyId(Long applyId);
}